package com.zhang.common.core.domain.config;

import java.io.Serializable;

/**
 * @Class com.zhang.common.core.domain.config
 * @Author zhang
 * @Date 2025/9/12 10:11
 * @Description 图片上传配置实体对象
 **/
public class UploadImageConfig implements Serializable {

    /**
     * 序列化序号
     */
    private static final long serialVersionUID = 3609678783318030143L;

    /**
     * 水印内容，如：www.huangpeng.net
     */
    private String waterMarkContent;

    /**
     * 图片压缩质量，小数从0开始最大为1，1为原质量,
     */
    private String quality;

    /**
     * 水印位置，如：BOTTOM_LEFT
     */
    private String positions;

    /**
     * 水印文字颜色, 如：000000、或者#000000
     */
    private String rgb;

    /**
     * 水印文字透明度，从0到1，如：0.8
     */
    private String alpha;

    /**
     * 图片缩放比例，0到1，1代表原始比例，如：0.8
     */
    private String scale;

    /**
     * 需要处理的图片类型后缀，多个逗号隔开，如：png,jpg,jpeg,gif,bmp,tiff
     */
    private String imageSuffix;

    /**
     * 图片压缩开关
     */
    private String zipSwitch;

    /**
     * 图片水印开关
     */
    private String waterMarkSwitch;

    /**
     * 图片最大大小KB
     */
    private String maxSize;

    /**
     * 压缩起始大小KB
     */
    private String zipMinSize;

    public String getWaterMarkContent() {
        return waterMarkContent;
    }

    public void setWaterMarkContent(String waterMarkContent) {
        this.waterMarkContent = waterMarkContent;
    }

    public String getQuality() {
        return quality;
    }

    public void setQuality(String quality) {
        this.quality = quality;
    }

    public String getPositions() {
        return positions;
    }

    public void setPositions(String positions) {
        this.positions = positions;
    }

    public String getRgb() {
        return rgb;
    }

    public void setRgb(String rgb) {
        this.rgb = rgb;
    }

    public String getAlpha() {
        return alpha;
    }

    public void setAlpha(String alpha) {
        this.alpha = alpha;
    }

    public String getScale() {
        return scale;
    }

    public void setScale(String scale) {
        this.scale = scale;
    }

    public String getImageSuffix() {
        return imageSuffix;
    }

    public void setImageSuffix(String imageSuffix) {
        this.imageSuffix = imageSuffix;
    }

    public String getZipSwitch() {
        return zipSwitch;
    }

    public void setZipSwitch(String zipSwitch) {
        this.zipSwitch = zipSwitch;
    }

    public String getWaterMarkSwitch() {
        return waterMarkSwitch;
    }

    public void setWaterMarkSwitch(String waterMarkSwitch) {
        this.waterMarkSwitch = waterMarkSwitch;
    }

    public String getMaxSize() {
        return maxSize;
    }

    public void setMaxSize(String maxSize) {
        this.maxSize = maxSize;
    }

    public String getZipMinSize() {
        return zipMinSize;
    }

    public void setZipMinSize(String zipMinSize) {
        this.zipMinSize = zipMinSize;
    }

    @Override
    public String toString() {
        return "UploadImageConfig{" +
                "waterMarkContent='" + waterMarkContent + '\'' +
                ", quality='" + quality + '\'' +
                ", positions='" + positions + '\'' +
                ", rgb='" + rgb + '\'' +
                ", alpha='" + alpha + '\'' +
                ", scale='" + scale + '\'' +
                ", imageSuffix='" + imageSuffix + '\'' +
                ", zipSwitch='" + zipSwitch + '\'' +
                ", waterMarkSwitch='" + waterMarkSwitch + '\'' +
                ", maxSize='" + maxSize + '\'' +
                ", zipMinSize='" + zipMinSize + '\'' +
                '}';
    }
}
